package com.xing.model.策略;

public class MallardDuck extends Duck{

    public MallardDuck(){
        this.flyBehavior = new FlyWithThings();
        this.quackBehavior = new Quack();
    }

    @Override
    public void display(){
        System.out.println("MallardDuck display");
    }

}
